﻿using Gp.Scripts.Core;
using PixelCrushers.DialogueSystem;
using QFramework;
using UnityEngine;

namespace GP.Scripts.GUI {
    public class QuestUIController: MonoBehaviour,IController {
        private QuestLogWindow _window;
        
        private void Start() {
            _window = this.GetComponent<QuestLogWindow>();
            // this.RegisterEvent<UIGroupChangeEvent>(e => {
            //     if (e.Group != UIGroup.Quest && _window.isOpen) {
            //         _window.Close();
            //     }
            // });
        }

        

        public IArchitecture GetArchitecture() {
            return MainArchitecture.Interface;
        }
    }
}